package com.tx.admin.modules.rbac.service.impl;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.tx.admin.core.service.impl.SuperServiceImpl;
import com.tx.admin.modules.rbac.entity.RoleUserEntity;
import com.tx.admin.modules.rbac.entity.UserEntity;
import com.tx.admin.modules.rbac.repository.RoleUserRepository;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import com.tx.admin.modules.rbac.service.RoleUserService;


@Transactional
@Service
class RoleUserServiceImpl extends SuperServiceImpl<RoleUserEntity>  implements RoleUserService{

	@Autowired
	private RoleUserRepository roleUserRepository;

	@Override
	public List<RoleUserEntity> findByUser(UserEntity user) {
		// TODO Auto-generated method stub
		return roleUserRepository.findByUser(user);
	}
	
	
}